package com.deere.model.pk;

import java.io.Serializable;

public class ItemWorkflowId implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2903739236166019804L;

	private String partCode; 
	
	private String wpCode; 
	
	private Integer sequence;

	public ItemWorkflowId() {
	}

	public String getPartCode() {
		return partCode;
	}

	public void setPartCode(String partCode) {
		this.partCode = partCode;
	}

	public String getWpCode() {
		return wpCode;
	}

	public void setWpCode(String wpCode) {
		this.wpCode = wpCode;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	@Override
	public boolean equals(Object obj) {
		if(this == obj)
			return true;
		if(obj == null)
			return false;
		if(getClass() != obj.getClass())
			return false;
		final ItemWorkflowId pk = (ItemWorkflowId) obj;
		if(partCode == pk.getPartCode() && wpCode == pk.getWpCode() && sequence == pk.getSequence())
			return true;
		return false;
	}

	@Override
	public int hashCode() {
		int hc = 1;
		hc = partCode.hashCode()+wpCode.hashCode()+sequence.hashCode();
		return hc;
	}

}
